package com.wade.service.impl;

import java.util.List;

import org.nutz.dao.Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wade.dao.LoginMapper;
import com.wade.domain.Student;
import com.wade.service.LoginService;

/**
 * 
 * @company: hua9group
 * @author wdChen
 * @date:2017年6月22日 下午1:54:20
 * @Description:
 */
@Service
public class LoginServiceImpl implements LoginService {

  @Autowired
  private LoginMapper loginMapper;
  
  @Autowired
  private Dao dao;
  
  public List<Student> login() {
    Student student = new Student();
    student.setStuName("小明");
    student.setStuAge(12);
    dao.insert(student);
    return loginMapper.login();
  }

}

